package com.zhang.server.mapper;

import com.zhang.server.controller.request.BookPageRequest;
import com.zhang.server.entity.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookMapper {
    List<Book> list();

    List<Book> listByCondition(BookPageRequest bookPageRequest);

    Integer save(Book book);

    Book getById(Integer id);

    void update(Book book);

    void delete(Integer id);

    Book getByBookNo(String bookNo);
}
